package com.eos.control.action.customer;

import com.eos.business.service.SysCustomerBusinessService;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SysCustomerLink;

public class EditCustomerLinkAction extends AbstractBaseAction {

	private static final long serialVersionUID = -7975726198649165649L;
	private Integer linkId;
	private SysCustomerLink customerLink;

	public void setLinkId(Integer linkId) {
		this.linkId = linkId;
	}

	public SysCustomerLink getCustomerLink() {
		return customerLink;
	}

	@Override
	public String execute() {
		try {
			SysCustomerBusinessService scbs = new SysCustomerBusinessService();
			customerLink = scbs.getCustomerLink(linkId);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return SUCCESS;
	}
}
